﻿namespace LS.Screening.UI.Common
{
    /// <summary>
    /// Minio文件服务器配置
    /// </summary>
    [Crypto]
    public class MinioConfig : FileConfig<MinioConfig>
    {
        /// <summary>
        /// Minio服务地址
        /// </summary>
        public string Host { get; set; }

        /// <summary>
        /// Minio服务端口
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 应用ID
        /// </summary>
        public string AccessKey { get; set; }

        /// <summary>
        /// 应用密钥
        /// </summary>
        public string SecretKey { get; set; }

        /// <summary>
        /// 是否启用https传输
        /// </summary>
        public bool IsEnableHttps { get; set; }

        protected override void OnCreated()
        {
            base.OnCreated();
            if (string.IsNullOrEmpty(Host))
            {
                Host = "192.168.0.103";
                Port = 9000;
                AccessKey = "admin";
                SecretKey = "admin@123";
                IsEnableHttps = false;
            }
        }
    }
}
